package com.rchat.pocmini.common.update;

/**
 * @Description ：
 * @Author itsdf07
 * @Time 2017/10/13
 */

public class AppUpdateGlobal {

    /**
     * 检查升级模式：自动还是手动
     */
    public class CheckUpdateModel {
        /**
         * 自动请求
         */
        public static final String AUTO = "auto";
        /**
         * 手动请求
         */
        public static final String CHECK = "check";

        /**
         * 插件下载
         */
        public static final String PLUGIN = "plugin";
    }

//    public static String getBuild() {
//        String version = CommonUtils.getAppVersionName();
////        if (version == null)
////            return "0";
//        if (version.contains(" ")) {
//            version = version.substring(0, version.lastIndexOf(" "));
//        }
//        String[] strs = version.split("[.]");
//        if (strs.length < 4)
//            return "0";
//        return strs[3];
//    }
}
